package com.whfc.ms.api.emp.service.impl;

import com.whfc.common.exception.BizException;
import com.whfc.common.file.FileHandler;
import com.whfc.common.file.FilePathConfig;
import com.whfc.common.result.PageData;
import com.whfc.emp.dto.*;
import com.whfc.emp.param.*;
import com.whfc.emp.service.AppTrainingCategoriesService;
import com.whfc.entity.dto.OssPathDTO;
import com.whfc.ms.api.emp.service.MsTrainService;
import com.whfc.ms.api.emp.service.MsTrainingCategoryService;
import org.apache.commons.lang3.StringUtils;
import org.apache.dubbo.config.annotation.DubboReference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;


/**
 * @ClasssName MsTrainServiceImpl
 * @Description 人员管理-培训
 * @Author hw
 * @Date 2020/11/26 17:24
 * @Version 1.0
 */
@Service
public class MsTrainingCategoryServiceImpl implements MsTrainingCategoryService {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @DubboReference(interfaceClass = AppTrainingCategoriesService.class, version = "1.0.0", timeout = 5000)
    private AppTrainingCategoriesService appTrainingCategoriesService;

    @Override
    public PageData<AppTrainingCategoryDTO> list(AppTrainingCategoryListParam request) {
        return appTrainingCategoriesService.list(request);
    }

    @Override
    public void add(AppTrainingCategoryAddParam request) {
        appTrainingCategoriesService.add(request);
    }

    @Override
    public void edit(AppTrainingCategoryEditParam request) {
        appTrainingCategoriesService.edit(request);
    }

    @Override
    public void del(Integer id) {
        appTrainingCategoriesService.del(id);
    }




}
